package factory;

import factory.impl.*;
import factory.service.ClothesMakeService;

/**
 * 非品牌 服装生产工厂
 *
 * @author lihaoshan
 * @date 2018-06-22
 * */
public class NonBrandClothesMakeFactory extends AbstractFactory{

    @Override
    public ClothesMakeService getClothes(String clothesType){

        if("商务".equals(clothesType)){
            return new BusinessImpl();
        } else if ("运动".equals(clothesType)){
            return new SportSwearImpl();
        } else if ("休闲".equals(clothesType)){
            return new CasualImpl();
        }

        return null;
    }

}
